package com.pet.server.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 宠物表
 *
 * @author Centaurea
 */
@ApiModel(value = "com-pet-server-domain-entity-Pet")
@Data
@NoArgsConstructor
@TableName(value = "t_pet")
public class Pet implements Serializable {
  private static final long serialVersionUID = -2905990219763338316L;
  public static final String COL_ID = "id";
  public static final String COL_PET_NAME = "pet_name";
  public static final String COL_PET_CATEGORY = "pet_category";
  public static final String COL_PET_TYPE = "pet_type";
  public static final String COL_PET_COLOUR = "pet_colour";
  public static final String COL_PET_BIRTHDAY = "pet_birthday";
  public static final String COL_PET_CHARACTER = "pet_character";
  public static final String COL_PET_OWNER_ID = "pet_owner_id";

  /** 宠物ID */
  @TableId(value = "id", type = IdType.AUTO)
  @ApiModelProperty(value = "宠物ID")
  private Integer id;

  /** 宠物名字 */
  @TableField(value = "pet_name")
  @ApiModelProperty(value = "宠物名字")
  private String petName;

  /** 宠物品类 */
  @TableField(value = "pet_category")
  @ApiModelProperty(value = "宠物品类")
  private String petCategory;

  /** 宠物种类 */
  @TableField(value = "pet_type")
  @ApiModelProperty(value = "宠物种类")
  private String petType;

  /** 宠物颜色 */
  @TableField(value = "pet_colour")
  @ApiModelProperty(value = "宠物颜色")
  private String petColour;

  /** 出生日期 */
  @TableField(value = "pet_birthday")
  @ApiModelProperty(value = "出生日期")
  private LocalDate petBirthday;

  /** 宠物性格 */
  @TableField(value = "pet_character")
  @ApiModelProperty(value = "宠物性格")
  private String petCharacter;

  /** 宠物主人id */
  @TableField(value = "pet_owner_id")
  @ApiModelProperty(value = "宠物主人id")
  private Integer petOwnerId;
}
